package top.infopub.mgr.mkt.dao;

import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;
import top.infopub.dto.mkt.MarketingRewardDto;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.mkt.domain.MarketingRewardDomain;
import top.infopub.mgr.mkt.vo.MarketingRewardVo;
import top.infopub.model.mkt.MarketingReward;

/**
 * 营销奖励(MKT_SALE_REWARD)
 */
@Repository
public interface MarketingRewardDao extends GenericDao<MarketingReward, String> {

    /**
     * 根据条件查询营销奖励
     *
     * @param marketingRewardVo
     * @return
     * @see
     */
    Page<MarketingRewardDomain> selectByDomainWhere(MarketingRewardVo marketingRewardVo);

    /**
     * 根据项目信息收集id查询详情
     *
     * @param id 主键id
     * @return
     * @see
     */
    MarketingRewardDomain queryById(String id);

    /**
     * 营销奖励保存
     * @param marketingReward
     */
    void modifyByIdSelective(MarketingReward marketingReward);

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    MarketingRewardDto queryDetailById(String id);

    void insertByProcess(MarketingReward mktReward);
}
